﻿<Window x:Class="JDKD.BMCS.InstructionTestApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" FontSize="20" Loaded="Window_Loaded" ResizeMode="CanMinimize">
    <Grid Name="RootGrid">
                <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Margin="16" TextWrapping="Wrap" Text="串口" VerticalAlignment="Top"/>
                <TextBlock HorizontalAlignment="Left" Margin="16" Grid.Row="1" TextWrapping="Wrap" Text="摄像机" VerticalAlignment="Top"/>
                <ComboBox x:Name="SerialPortComboBox" Grid.Column="1" HorizontalAlignment="Left" Margin="16" VerticalAlignment="Top" Width="120" IsReadOnly="True" SelectedValue="{Binding CurrentSerialPortName}"/>
                <ComboBox x:Name="CameraComboBox" Grid.Column="1" HorizontalAlignment="Left" Margin="16" Grid.Row="1" VerticalAlignment="Top" Width="120" IsReadOnly="True" SelectedValue="{Binding CurrentCameraId}"/>
                <Button x:Name="PushButton" Content="推钢启动" Grid.Column="2" HorizontalAlignment="Left" Margin="16" Grid.Row="1" VerticalAlignment="Top" Click="PushButton_Click"/>
                <TextBlock HorizontalAlignment="Left" Margin="16" Grid.Row="2" TextWrapping="Wrap" Text="流" VerticalAlignment="Top"/>
                <ComboBox x:Name="ChannelComboBox" Grid.Column="1" HorizontalAlignment="Left" Margin="16" Grid.Row="2" VerticalAlignment="Top" Width="120" IsReadOnly="True" SelectedValue="{Binding CurrentChannelId}"/>
                <Button x:Name="RaiseButton" Content="挡板上升" Grid.Column="2" HorizontalAlignment="Left" Margin="16" Grid.Row="2" VerticalAlignment="Top" Click="RaiseButton_Click"/>
                <Button x:Name="ShiftButton" Content="翻钢启动" Grid.Column="2" HorizontalAlignment="Left" Margin="16" Grid.Row="3" VerticalAlignment="Top" Click="ShiftButton_Click"/>
                <Button Content="Button" Grid.Column="3" HorizontalAlignment="Left" Margin="16" Grid.Row="2" VerticalAlignment="Top"/>
                <Button Content="Button" Grid.Column="3" HorizontalAlignment="Left" Margin="16" Grid.Row="3" VerticalAlignment="Top"/>

        </Grid>
</Window>
